package com.example.arena;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;
import android.widget.ImageButton;
/**
 * 
 * @author Dani
 * The main menu of the app
 */
public class MenuActivity extends Activity {
ImageButton btnFight;
ImageButton btnPreferences;
ImageButton btnHelp;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);
		//We get the buttons...
		 btnFight = (ImageButton) findViewById(R.id.btnFight);
		 btnPreferences = (ImageButton) findViewById(R.id.btnPreferences);
		 btnHelp = (ImageButton) findViewById(R.id.btnHelp);
		 
		 //And then make their method that will just redirect to the next screen
		 btnFight.setOnClickListener(new View.OnClickListener() {
		   	    public void onClick(View view) {
		   	    Intent intent = new Intent(MenuActivity.this, StatsActivity.class);
		   	 startActivity(intent);
		   	    }
		   	});
		 
		 btnPreferences.setOnClickListener(new View.OnClickListener() {
		   	    public void onClick(View view) {
		   	    Intent intent = new Intent(MenuActivity.this, PreferencesActivity.class);
		   	 startActivity(intent);
		   	    }
		   	});
		 
		 btnHelp.setOnClickListener(new View.OnClickListener() {
		   	    public void onClick(View view) {
		   	    Intent intent = new Intent(MenuActivity.this, HelpActivity.class);
		   	 startActivity(intent);
		   	    }
		   	});
		 
		
	}


}
